﻿using System;
using System.IO;
using System.Web;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework.Internal;

namespace MonorailScaffoldingTests {
    public class Global : HttpApplication {
        protected void Application_Start(object sender, EventArgs e) {
            log4net.Config.XmlConfigurator.Configure(new FileInfo(Server.MapPath("/log4net.config")));
            ActiveRecordStarter.Initialize();
            ActiveRecordStarter.CreateSchema();
        }

        protected void Session_Start(object sender, EventArgs e) {}

        protected void Application_BeginRequest(object sender, EventArgs e) {}

        protected void Application_AuthenticateRequest(object sender, EventArgs e) {}

        protected void Application_Error(object sender, EventArgs e) {}

        protected void Session_End(object sender, EventArgs e) {}

        protected void Application_End(object sender, EventArgs e) {}
    }
}